﻿@model IEnumerable<SweetSurvey.Models.ParticipatorModel>

@{
    ViewBag.Title = "Participators";
    Layout = "~/Views/Shared/_AdministratorLayout.cshtml";
}

@{
    var grid = new WebGrid(Model, rowsPerPage: 20);
    @grid.GetHtml(
        columns: grid.Columns(
            grid.Column("ParticipatorDate", "Participator Date", canSort: false),
            grid.Column("ParticipatorId", "Participator Id", canSort: false),
            grid.Column("SurveyId", "Survey Id", canSort: false),
            grid.Column(header: "Survey", format: @<text><a href="@Url.Action("Report", "Survey", new { id = item.SurveyId })" target="_blank">@item.SurveyTitle</a></text>, canSort: false)),
        mode: WebGridPagerModes.FirstLast | WebGridPagerModes.NextPrevious | WebGridPagerModes.Numeric,
        firstText: "First Page",
        lastText: "Last Page",
        previousText: "Previous Page",
        nextText: "Next Page",
        tableStyle: "full-width"
    );
}